package cn.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.mapper.DetailMapper;
import cn.pojo.Detail;

@Service
@Transactional
public class DetailServiceImpl implements DetailService {
@Resource
private DetailMapper detailMapper;
	@Override
	public List<Detail> getDetailBySortId(Long sortId) {
		return detailMapper.getDetailBySortId(sortId);
	}
	@Override
	public int addDetail(Detail detail) {
		return detailMapper.addDetail(detail);
	}

}
